
import { env } from '@/utils/env'
import http from './http'
import type { ResponeData } from '@/types/HttpType'


export const getAccessToken = async (id: number): Promise<ResponeData<any>> => {
    return http<any>({
        url: env.VITE_ZHER_IOT_MGR + '/iot/imo/access/token/' + id + '/nol/noa',
        method: 'get',
    })
}

export const getKitToken = async (id: number): Promise<ResponeData<any>> => {
    return http<any>({
        url: env.VITE_ZHER_IOT_MGR + '/iot/imo/kit/token/' + id + '/nol/noa',
        method: 'get',
    })
}

export const localVideoList = async (params: {
    id: number,
    beginTime: string,
    endTime: string
}): Promise<ResponeData<any>> => {
    return http<any>({
        url: env.VITE_ZHER_IOT_MGR + '/iot/imo/local/video/list',
        method: 'get',
        params
    })
}
 